<?php

namespace App\Models\Live;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ShopMemberLogModel extends Model
{
    use HasFactory;
    protected $connection="shop";
    protected $table="member_log";
    public $timestamps = false;
    protected $guarded=[];
    public static function make($member_id){
        $log = [
                'member_id' => $member_id,
                'action' => 'live_payout',
                'action_name' => '直播派发',
                'create_time' => time(),
                'remark' => '直播间派发积分'
        ];
        return self::create($log);
    }
}
